FROM java:8-jre-alpine
#FROM openjdk:8-jdk-alpine
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
COPY spring-cloud-alibaba-example-nscos-comsumer.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
# docker save -o ~/jar/fileName.tar image:version
# docker load < fileName.tar